package com.ybkj.daijia.server.service;


import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.Train;


/**
 * @author Shine.
 */
public interface TrainService {

    /**
     * 创建培训课程.
     *
     * @param train 培训课程内容
     * @return Train
     */
    public Train insert(Train train);

    /**
     * 修改.
     *
     * @param train 培训课程内容
     * @return int
     */
    public int update(Train train);

    /**
     * 查询单个课程
     *
     * @param id.
     * @return train
     */
    public Train findOne(Long id);


    /**
     * 删除.
     *
     * @param id
     */
    public void delete(Long id);

    public Page<Train> queryByEmploy(Long driverId);

}
